@kodiak-finance/orderly-trading-leaderboard 2.8.7 → 2.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +5 -6
- package/dist/index.d.ts +5 -6
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -432,18 +432,17 @@ type GeneralRankingScriptOptions = {
|
|
|
432
432
|
dateRange?: DateRange | null;
|
|
433
433
|
address?: string;
|
|
434
434
|
sortKey?: "perp_volume" | "realized_pnl";
|
|
435
|
-
|
|
435
|
+
leaderboardEndpoint?: string;
|
|
436
436
|
};
|
|
437
437
|
declare function useGeneralRankingScript(options?: GeneralRankingScriptOptions): {
|
|
438
438
|
pagination: _kodiak_finance_orderly_ui.PaginationMeta;
|
|
439
439
|
initialSort: TableSort;
|
|
440
440
|
onSort: (sort?: TableSort) => void;
|
|
441
|
-
dataSource:
|
|
441
|
+
dataSource: GeneralRankingData[];
|
|
442
442
|
isLoading: boolean;
|
|
443
|
-
isPointsLoading: boolean;
|
|
444
443
|
isMobile: boolean;
|
|
445
444
|
sentinelRef: react.MutableRefObject<HTMLDivElement | null>;
|
|
446
|
-
dataList:
|
|
445
|
+
dataList: GeneralRankingData[];
|
|
447
446
|
address: string | undefined;
|
|
448
447
|
};
|
|
449
448
|
|
|
@@ -511,7 +510,7 @@ type GeneralLeaderboardProps = {
|
|
|
511
510
|
start_time: Date | string;
|
|
512
511
|
end_time: Date | string;
|
|
513
512
|
};
|
|
514
|
-
|
|
513
|
+
leaderboardEndpoint?: string;
|
|
515
514
|
timeRange?: {
|
|
516
515
|
from?: string | Date;
|
|
517
516
|
to?: string | Date | "now";
|
|
@@ -519,7 +518,7 @@ type GeneralLeaderboardProps = {
|
|
|
519
518
|
} & GeneralLeaderboardScriptReturn;
|
|
520
519
|
declare const GeneralLeaderboard: FC<GeneralLeaderboardProps>;
|
|
521
520
|
|
|
522
|
-
type GeneralLeaderboardWidgetProps = Pick<GeneralLeaderboardProps, "style" | "className" | "campaignDateRange" | "
|
|
521
|
+
type GeneralLeaderboardWidgetProps = Pick<GeneralLeaderboardProps, "style" | "className" | "campaignDateRange" | "leaderboardEndpoint" | "timeRange">;
|
|
523
522
|
declare const GeneralLeaderboardWidget: FC<GeneralLeaderboardWidgetProps>;
|
|
524
523
|
|
|
525
524
|
type CampaignLeaderboardScriptReturn = ReturnType<typeof useCampaignLeaderboardScript>;
|
package/dist/index.d.ts
CHANGED
|
@@ -432,18 +432,17 @@ type GeneralRankingScriptOptions = {
|
|
|
432
432
|
dateRange?: DateRange | null;
|
|
433
433
|
address?: string;
|
|
434
434
|
sortKey?: "perp_volume" | "realized_pnl";
|
|
435
|
-
|
|
435
|
+
leaderboardEndpoint?: string;
|
|
436
436
|
};
|
|
437
437
|
declare function useGeneralRankingScript(options?: GeneralRankingScriptOptions): {
|
|
438
438
|
pagination: _kodiak_finance_orderly_ui.PaginationMeta;
|
|
439
439
|
initialSort: TableSort;
|
|
440
440
|
onSort: (sort?: TableSort) => void;
|
|
441
|
-
dataSource:
|
|
441
|
+
dataSource: GeneralRankingData[];
|
|
442
442
|
isLoading: boolean;
|
|
443
|
-
isPointsLoading: boolean;
|
|
444
443
|
isMobile: boolean;
|
|
445
444
|
sentinelRef: react.MutableRefObject<HTMLDivElement | null>;
|
|
446
|
-
dataList:
|
|
445
|
+
dataList: GeneralRankingData[];
|
|
447
446
|
address: string | undefined;
|
|
448
447
|
};
|
|
449
448
|
|
|
@@ -511,7 +510,7 @@ type GeneralLeaderboardProps = {
|
|
|
511
510
|
start_time: Date | string;
|
|
512
511
|
end_time: Date | string;
|
|
513
512
|
};
|
|
514
|
-
|
|
513
|
+
leaderboardEndpoint?: string;
|
|
515
514
|
timeRange?: {
|
|
516
515
|
from?: string | Date;
|
|
517
516
|
to?: string | Date | "now";
|
|
@@ -519,7 +518,7 @@ type GeneralLeaderboardProps = {
|
|
|
519
518
|
} & GeneralLeaderboardScriptReturn;
|
|
520
519
|
declare const GeneralLeaderboard: FC<GeneralLeaderboardProps>;
|
|
521
520
|
|
|
522
|
-
type GeneralLeaderboardWidgetProps = Pick<GeneralLeaderboardProps, "style" | "className" | "campaignDateRange" | "
|
|
521
|
+
type GeneralLeaderboardWidgetProps = Pick<GeneralLeaderboardProps, "style" | "className" | "campaignDateRange" | "leaderboardEndpoint" | "timeRange">;
|
|
523
522
|
declare const GeneralLeaderboardWidget: FC<GeneralLeaderboardWidgetProps>;
|
|
524
523
|
|
|
525
524
|
type CampaignLeaderboardScriptReturn = ReturnType<typeof useCampaignLeaderboardScript>;
|